package com.example.ctrip.service.Impl;

import com.example.ctrip.dao.IPAddrsDao;
import com.example.ctrip.entity.IPAddrs;
import com.example.ctrip.service.IPAddrsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;

@Service
public class IPAddrsServiceImpl implements IPAddrsService {

    @Autowired
    IPAddrsDao ipAddrsDao;

    @Override
    public IPAddrs selectIp() {
        return ipAddrsDao.selectIp();
    }

    @Override
    public int updateIpAddrs(int i, String ip, Date expireTime) {
        return ipAddrsDao.updateIpAddrs(i,ip,expireTime);
    }
}
